import request from "@/utils/request";

// 得到字典大类
export function dictionaryGetTypeList() {
  return request({
    url: "/dictionary/getTypeList",
    method: "get"
  });
}

// 得到字典名称
export function dictionaryGetCatalogByType(params) {
  return request({
    url: "/dictionary/getCatalogByType",
    method: "get",
    params
  });
}

// 保存字典
export function dictionarySave(data) {
  return request({
    url: "/dictionary/save",
    method: "post",
    data
  });
}

// 删除字典
export function dictionaryRemove(data) {
  return request({
    url: "/dictionary/remove",
    method: "post",
    data
  });
}

// 启禁用字典状态
export function dictionaryUpStatus(data) {
  return request({
    url: "/dictionary/upStatus",
    method: "post",
    data
  });
}

// 得到字典值
export function dictionaryGetByNames(params) {
  return request({
    url: "/dictionary/getByNames",
    method: "get",
    params
  });
}

